package org.vergil.core.designpattern.command;

/**
 * Created by vergil on 17-3-23.
 */
public class HelpCommand extends AbstractCommand {

    private HelpHandler helpHandler; //维持对请求接收者的引用

    public HelpCommand() {
        helpHandler = new HelpHandler();
    }

    @Override
    public void execute() {
        helpHandler.display();
    }

    @Override
    public void undo() {
        helpHandler.undo();
    }
}
